Use equals() to compare object references; avoid comparing them with ==.

<p>
This rule is deprecated, use {rule:squid:S1698} instead.
</p>
